<div class="auto-height-box">
<div class="ibox-content">
    <form class="form-horizontal" method="post" action="{:url('TenMsgType/edit')}">
        <input type="hidden" name="id" value="{$info['id']|default='0'}">
        <div class="form-group">
            <label class="col-sm-2 control-label">{:lang('提醒类型')}</label>
            <div class="col-sm-8">
                <input name="name" class="form-control" type="text" placeholder="{:lang('提醒类型')}" value="{$info.name|default=''}"/>
                <span class="help-block m-b-none"></span>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">{:lang('事件描述')}</label>
            <div class="col-sm-8">
                <textarea name="remark" class="form-control" cols="80" rows="2">{$info.remark|default=''}</textarea>
                <span class="help-block m-b-none"></span>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">{:lang('业务标识')}</label>
            <div class="col-sm-8">
                <input name="type" class="form-control" type="text" placeholder="{:lang('业务标识')}" value="{$info.type|default=''}" readonly/>
                <span class="help-block m-b-none">{:lang('如')}：{:lang('跟进')}cst_trace</span>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">{:lang('业务地址')}</label>
            <div class="col-sm-8">
                <input name="url" class="form-control" type="text" placeholder="{:lang('业务详细地址')}" value="{$info.url|default=''}"/>
                <span class="help-block m-b-none">{:lang('业务信息详细链接地址')}，{:lang('如')}：crm/SalContact/detail</span>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">{:lang('提前时间')}({:lang('小时')})</label>
            <div class="col-sm-8">
                <input name="hours" class="form-control" type="text" placeholder="{:lang('提前时间')}({:lang('小时')})" value="{$info.hours|default=''}"/>
                <span class="help-block m-b-none">{:lang('业务到期的提前提醒时长')}（{:lang('小时')}），{:lang('默认为提前')}1{:lang('小时')}{:lang('提醒')}</span>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">{:lang('通知总次数')}</label>
            <div class="col-sm-8">
                <input name="remind_nums" class="form-control" type="text" placeholder="{:lang('通知总次数')}" value="{$info.remind_nums|default='3'}"/>
                <span class="help-block m-b-none">{:lang('系统消息')}，{:lang('提醒总次数')},{:lang('默认为')}3</span>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">{:lang('间隔')}({:lang('小时')})</label>
            <div class="col-sm-8">
                <input name="remind_interval" class="form-control" type="text" placeholder="{:lang('间隔')}({:lang('小时')})" value="{$info.remind_interval|default='1'}"/>
                <span class="help-block m-b-none">{:lang('系统消息')}，{:lang('每次提醒后的下次间隔时间')}，{:lang('默认为提前')}1{:lang('小时提醒')}</span>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">{:lang('手机')}</label>
            <div class="col-sm-8">
                <div class="radio radio-info radio-inline">
                    <input type="radio" id="sms_1" value="1" name="remind_sms" {eq name="info.remind_sms" value='1'} checked='checked' {/eq}>
                    <label for="sms_1"> {:lang('启用')} </label>
                </div>
                <div class="radio radio-info radio-inline">
                    <input type="radio" id="sms_0" value="0" name="remind_sms" {eq name="info.remind_sms" value='0'} checked='checked' {/eq}>
                    <label for="sms_0"> {:lang('禁用')} </label>
                </div>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">{:lang('系统')}</label>
            <div class="col-sm-8">
                <div class="radio radio-info radio-inline">
                    <input type="radio" id="sys_1" value="1" name="remind_sys" {eq name="info.remind_sys" value='1'} checked='checked' {/eq}>
                    <label for="sys_1"> {:lang('启用')} </label>
                </div>
                <div class="radio radio-info radio-inline">
                    <input type="radio" id="sys_0" value="0" name="remind_sys" {eq name="info.remind_sys" value='0'} checked='checked' {/eq}>
                    <label for="sys_0"> {:lang('禁用')} </label>
                </div>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">{:lang('邮箱')}</label>
            <div class="col-sm-8">
                <div class="radio radio-info radio-inline">
                    <input type="radio" id="email_1" value="1" name="remind_email" {eq name="info.remind_email" value='1'} checked='checked' {/eq}>
                    <label for="email_1"> {:lang('启用')} </label>
                </div>
                <div class="radio radio-info radio-inline">
                    <input type="radio" id="email_0" value="0" name="remind_email" {eq name="info.remind_email" value='0'} checked='checked' {/eq}>
                    <label for="email_0"> {:lang('禁用')} </label>
                </div>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">{:lang('微信')}</label>
            <div class="col-sm-8">
                <div class="radio radio-info radio-inline">
                    <input type="radio" id="weixin_1" value="1" name="remind_weixin" {eq name="info.remind_weixin" value='1'} checked='checked' {/eq}>
                    <label for="weixin_1"> {:lang('启用')} </label>
                </div>
                <div class="radio radio-info radio-inline">
                    <input type="radio" id="weixin_0" value="0" name="remind_weixin" {eq name="info.remind_weixin" value='0'} checked='checked' {/eq}>
                    <label for="weixin_0"> {:lang('禁用')} </label>
                </div>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-offset-2 col-sm-8">
                {include file="layout/save_btn"}
            </div>
        </div>
    </form>
</div>
</div>